package com.shi.yoyoshop.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName item
 */
@TableName(value = "item")
@Data
public class Item implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * "商品项id"
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * "商品单价"
     */
    private Double price;
    /**
     * "购买数量"
     */
    private Integer amount;
    /**
     * "商品的id，关联goods表"
     */
    private Integer goodId;
    /**
     * "订单id，关联order"
     */
    private Integer orderId;
    private Goods goods;
}